package io.github.talelin.latticy.dto.oms.inbound_order;

import com.baomidou.mybatisplus.annotation.TableName;
import io.github.talelin.latticy.common.pojo.BaseDO;
import io.github.talelin.latticy.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 入库打包单子项表
 *
 * @author generator@TaleLin
 * @since 2022-05-18
 */
@Data
@NoArgsConstructor
public class InboundPackagesItemsDTO extends BaseDO {

    /**
     * 产品skuId
     */
    @NotNull(message = "{packages-items.productId.not-empty}")
    private Long productId;


    /**
     * 总数数量
     */
    @NotNull(message = "{packages-items.quantity.not-empty}")
    private Integer quantity;


    /**
     * 数量/箱
     */
    @NotNull(message = "{packages-items.perQuantity.not-empty}")
    private Integer perQuantity;

}
